package org.langke.example.controller;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
public class TestController {
    @SentinelResource("resource")
    @RequestMapping("/test")
    public String test(){
        return "ok";
    }
}
